{% extends "split_header_template.html" %}
{% load markup %}
{% load ajax %}

{% block content_header %}
    <h1>{{object.name}}</h1>
{% endblock %}

{% block main_content %}
	{% with object as node %}
	{% with request_model as model %}
	{% with request_content_type as node_content_type %}
	   	<div id='request_wrapper' class='content_wrapper'>
	        <div class='top'>
	            <div class='left'>  
	                <div id='{{model}}_{{node.id}}_vote_wrapper' class='voting'>
	                	{% with "standard" as vote_class %}
	                 	   {% include "django_multivoting/standard_vote.html" %}
	                 	{% endwith %}
	                </div>
	            </div>
	            <div class='right'>
	                <div class='description'>
	                    {{object.description|markdown}}
	                </div>
	                {% include "core/elements/additional_info.html" %}
	            </div>
	        </div>
	        <div class='bottom'>
	            <a name='comments'></a>
	            <h3>Comments</h3>
	            <div id='comments' class='comments'>
	                {% with object.comments.all as comments %}  
	                    {% include "django_comments/standard_comment_list.html" %}
	                {% endwith %}
	            </div>
	            <div class='comment_form'>
	                {% include "django_comments/standard_form.html" %}
	            </div>
	        </div>
	    </div>
    {% endwith %}
    {% endwith %}
    {% endwith %}
{% endblock %}

{% block sidebar %}
    <div class='right_wrapper'>
		<div id='latest_contributions' class='info_sidebar'>
    		<h2> Supporters </h2>
    		<ul>
    			{% for vote in object.supporters %}
    				{% ifnotequal vote.user.profile.all.0.display_name "anonymous" %}
    					<li>{{vote.user.profile.all.0.display_name}}</li>
    				{% endifnotequal %}
    			{% endfor %}
		        <div class='clear'></div>
		    </ul>
		</div>
    </div>
{% endblock %}
